package com.lorenzogao.customview


import androidx.appcompat.app.AppCompatActivity
import androidx.appcompat.widget.Toolbar


/**
 *  create by LorenzoGao
 *  email: 2508719070@qq.com
 *  TIME: 2019-11-11 13:31
 *  description:
 */

open class BaseActivity : AppCompatActivity() {








    fun setToolBar(toolbar: Toolbar, title: String) {
        setSupportActionBar(toolbar)
        toolbar.title = title
        supportActionBar?.setDisplayHomeAsUpEnabled(true)
        toolbar.setNavigationOnClickListener {
            finish()
        }
    }


}